#define led (11)
const int analogOutPin = 11;
unsigned char ledLight = 0;
int x = 1;
void setup() {
  // put your setup code here, to run once:
pinMode(led, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:

ledLight+=x;
if (ledLight == 255 || ledLight == 0)
{
  x=-x;
  
}

delay(10);
analogWrite(analogOutPin,ledLight);


}
